package org.example.demo10;

/**
 * @author Gong.Yang
 */
public class Main {
    public static void main(String[] args) {
        Class<EntityDemo> entityDemoClass = EntityDemo.class;
        Repository repository = new Repository<>(entityDemoClass);
        Factory factory = new Factory(repository, entityDemoClass);
        Object intercept = factory.intercept(new Object[]{new EntityDemo()});
        System.out.println(intercept);
    }
}
